package com.kaifamiao.N0730;

import java.util.Scanner;

public class Person extends Bank{
    String name1 ;

    int account1;

    int password1;

    Scanner un  = new Scanner(System.in);

    public void log(){
            if (num.account == account1) {
                if (num.password == password1) {
                    System.out.println("登录成功");
                    Bank1 h = new Bank1();
                    h.y();
                }
            }
            else {
            System.out.println("您输入的账号或者密码错误。或者没有账号，请注册。");
        }

    }
}
